<%-- 
    Document   : novo
    Created on : 14/09/2011, 20:19:27
    Author     : Rachid
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="text/javascript" src="<c:url value="/javascripts/jquery-1.3.2.min.js"/>" ></script>
        <script type="text/javascript" src="<c:url value="/javascripts/jquery.validate.min.js"/>" ></script>
        <title>JSP Page</title>
    </head>
    <body>
        <form id="usuariosForm" action="<c:url value="/usuario/adiciona"/>" method="POST">
            <fieldset>
                <legend>Criar novo usuário</legend>
                <label for="nome">Nome:</label>
                <input id="nome" class="required"
                       type="text" name="usuario.nome" value="${usuario.nome }"/>
                <label for="login">Login:</label>
                <input id="login" class="required"
                       type="text" name="usuario.login" value="${usuario.login }"/>
                <label for="senha">Senha:</label>
                <input id="senha" class="required" type="password" name="usuario.senha"/>
                <label for="confirmacao">Confirme a senha:</label>
                <input id="confirmacao" equalTo="#senha" type="password"/>
                <button type="submit">Enviar</button>
            </fieldset>
        </form>
        <script type="text/javascript">
            $('#usuariosForm').validate();
        </script>
    </body>
</html>